<%@ page import="app.AppRemoteConnector" %>
<%@ page import="com.alibaba.fastjson.JSONArray" %>
<%@ page import="com.alibaba.fastjson.JSON" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.LinkedHashMap" %>
<%@ page import="webserver.HTMLMaker" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
 <style>
  .ON {background-color:green;}
  .OFF {background-color:red;}
  .beautiful-table table {border-collapse:collapse;}
  .beautiful-table th {background-color: #c9c9c9;text-align:left;padding:8px;}
  .beautiful-table tr:nth-child(even) {background-color:#f1f3f3;}
  .beautiful-table td, .beautiful-table th {border: 1px solid #bbbbbb;padding:4px 8px 4px 8px;}
 </style>
</head>
<body>
<jsp:scriptlet>
   AppRemoteConnector conn = (AppRemoteConnector) application.getAttribute("conn"); HTMLMaker maker = (HTMLMaker) application.getAttribute("maker");
  </jsp:scriptlet>
<h1>table1所有行</h1><jsp:expression>
 maker.makeTable(conn.raw("{\"api\":\"db_header\",\"app_name\":\"AppDemoDatabase\",\"table_name\":\"table1\"}"), conn.raw("{\"api\":\"db_rows\",\"app_name\":\"AppDemoDatabase\",\"table_name\":\"table1\",\"rows\":-1}"))
</jsp:expression>
<h1>table2所有行</h1><jsp:expression>
 maker.makeTable(conn.raw("{\"api\":\"db_header\",\"app_name\":\"AppDemoDatabase\",\"table_name\":\"table2\"}"), conn.raw("{\"api\":\"db_rows\",\"app_name\":\"AppDemoDatabase\",\"table_name\":\"table2\",\"rows\":-1}"))
</jsp:expression>
<h1>table1和table2合并</h1><jsp:expression>
 maker.makeTable(conn.raw("{\"api\":\"db_header\",\"app_name\":\"AppDemoDatabase\",\"table_name\":\"table3\"}"), conn.raw("{\"api\":\"db_rows\",\"app_name\":\"AppDemoDatabase\",\"table_name\":\"table3\",\"rows\":-1}"))
</jsp:expression>
</body>
</html>